package TamirsGui;

public class registerMsgAck extends AcknowledgmentMsg{
	
	String logedIn;
	String reason;
	public registerMsgAck(String [] loginAck){
		this.reason = "";
		this.parseAck(loginAck);
	}
	
	private void parseAck(String[] loginAck) {
		this.logedIn = loginAck[0];
		if(loginAck.length > 3)
			this.reason = " "+loginAck[2]; 	
	}

	@Override
	public String getGuiMsg() {
		return logedIn+this.reason;
	}


}
